﻿<navigation:Page x:Class="GranitePackageSystem.Views.Request.VirtualInstallMachines" 
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"
           xmlns:GranitePackageSystem_FileUploader="clr-namespace:GranitePackageSystem.FileUploader"
           d:DesignWidth="800" d:DesignHeight="480" MaxWidth="1024"
           Title="VirtualInstallMachines Page">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <RowDefinition Height="333*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250" />
            <ColumnDefinition Width="550*" />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Margin="10" Name="panelTitle">
            <TextBlock Text="Testing Environment" Name="txtHeader"  FontSize="18" FontWeight="Bold" HorizontalAlignment="Center" />
        </StackPanel>
        <StackPanel Grid.Row="1" Name="panelLandingNav" Margin="10,10,10,0" Background="#FF484848" Height="Auto" VerticalAlignment="Top" Width="200" HorizontalAlignment="Center">
            <StackPanel>
                <HyperlinkButton x:Name="linkHome" NavigateUri="/Home" TargetName="ContentFrame" Content="Dashboard" Style="{StaticResource LinkStyle}" Foreground="White" Background="{x:Null}" AllowDrop="True" HorizontalContentAlignment="Left" Margin="16,0,0,0"/>
                <controlsToolkit:Expander ExpandDirection="Down" IsExpanded="True" Visibility="Collapsed" Name="expanderRequest">
                    <controlsToolkit:Expander.Header>
                        <TextBlock Text="Current Request" FontSize="12" Foreground="White" TextAlignment="Left" />
                    </controlsToolkit:Expander.Header>
                    <controlsToolkit:Expander.Content>
                        <StackPanel HorizontalAlignment="Right" Margin="30,0,0,0" Width="AUTO">
                            <HyperlinkButton x:Name="linkVirtualMachines" NavigateUri="/Request/VirtualInstallMachines" TargetName="ContentFrame" Content="• Testing Environment" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Foreground="#FF42A1F5" Visibility="Collapsed" />
                            <HyperlinkButton x:Name="linkPackageDetails" NavigateUri="/Request/PackageDetails" TargetName="ContentFrame" Content="• Package Details" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Visibility="Collapsed" />
                            <HyperlinkButton x:Name="linkProgramDetails" NavigateUri="/Request/ProgramDetails" TargetName="ContentFrame" Content="• Program Details" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Visibility="Collapsed" />
                            <HyperlinkButton x:Name="linkLicensing" NavigateUri="/Request/SourceFiles" TargetName="ContentFrame" Content="• Licensing" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Visibility="Collapsed" />
                            <HyperlinkButton x:Name="linkDeploymentPlan" NavigateUri="/Request/SourceFiles" TargetName="ContentFrame" Content="• Deployment Plan" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Visibility="Collapsed" />
                        </StackPanel>
                    </controlsToolkit:Expander.Content>
                </controlsToolkit:Expander>
            </StackPanel>
        </StackPanel>
        
        <StackPanel Name="panelContent" Grid.Row="1" Grid.Column="1" Visibility="Collapsed">
            <controlsToolkit:BusyIndicator Name="busyIndicatorVMS" IsBusy="False">
                <StackPanel>
                    <Button Name="btnRequestVMs" Content="Request Test VM" Width="160" Click="btnRequestVMs_Click" />
                    <StackPanel Name="stackPanel1" Margin="10">
                        <controlsToolkit:BusyIndicator Name="busyIndicatorVMName">
                            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Height="25" Margin="0,0,0,20">
                                <TextBlock Text="Virtual Machine Name:  " Height="17" VerticalAlignment="Center" />
                                <TextBlock Name="blockVMName" Text="" Height="17" VerticalAlignment="Center" />
                            </StackPanel>
                        </controlsToolkit:BusyIndicator>
                    <GranitePackageSystem_FileUploader:FileUploaderControl x:Name="fileUploader" UploadHandlerPath="~/UploaderControlHandler.ashx" Height="250" Loaded="fileUploader_Loaded" IsEnabled="False" FileFilter="Zip Files(*.zip)|*.zip" />
                        <Button Content="Access Test Machine" Name="btnAccessVDI" Margin="5" Width="170" Height="20" VerticalAlignment="Center" IsEnabled="False" Click="btnAccessVDI_Click" />
                        <Button Name="btnFinished" IsEnabled="False" HorizontalAlignment="Right" Content="Done" Width="75" Margin="0,20,0,0" Click="btnFinished_Click" />
                    </StackPanel>
                </StackPanel>
            </controlsToolkit:BusyIndicator>
        </StackPanel>
        <Border BorderBrush="Silver" BorderThickness="1" Grid.RowSpan="4" Grid.ColumnSpan="3" Name="border1">
        </Border>
    </Grid>
</navigation:Page>

